]> dgit.raspbian.org Git - gnome-shell.git/commit
appDisplay: Use ::paint handler to set up spring animation
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 2 Jun 2017 02:22:36 +0000 (04:22 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 19 Jul 2017 08:49:54 +0000 (10:49 +0200)
commitc67eabaf62665d7e89471a35111ff66c96322a4c
treec8d45e94eed6487aae7b3874ed0960743d72c937
parent6c9a7ce84e65f0ce0ccdd7c78614173acd8740a0
appDisplay: Use ::paint handler to set up spring animation

The animation needs the icons' final positions, so we currently defer
it to a ::notify::allocation handler; however as starting the animation
during an allocation cycle would trigger a Clutter warning, it is
further deferred to a MetaLater. While this usually works, it is possible
that the allocation is already valid when we connect the signal, in which
case the animation is triggered at a later unexpected time. Switch to
a more robust ::paint handler instead, which also allows us to get rid
of the double-delay.

https://bugzilla.gnome.org/show_bug.cgi?id=736148
js/ui/appDisplay.js